package com.dao.expert;

import com.entity.expert.NeedsDetails;
import com.entity.expert.Processing;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NeedsMapper {
    /**
     * 查询需求
     *
     */
    public List<NeedsDetails> selectNeedsAll(@Param("state")String state,@Param("expertID")Integer expertID);

    /**
     *需求各状态的数量
     */
    public int queryNeedStateByState(@Param("state")String state,@Param("expertID")Integer expertID);
    /**
     * 修改需求状态
     */
    public int updateNeedsState(@Param("needsID") Integer needsID,@Param("expertID")Integer expertID,@Param("state")String state,@Param("data") String data);

    /**
     * 修改病历状态
     */
    public int upadteCasesState(@Param("needsID") Integer needsID,@Param("expertID")Integer expertID,@Param("state")String state);

    /*
        查询咨询列表
     */
    public List<Processing> queryProcessings(@Param("expertID") Integer expertID, @Param("state") String state);

    /**
     * 添加咨询
     */
    public int addAdvisory(@Param("needsID") Integer needsID);


}
